% This file was created by matlab2tikz v0.2.0.
% Copyright (c) 2008--2012, Nico Schlömer <nico.schloemer@gmail.com>
% All rights reserved.
% 
% The latest updates can be retrieved from
%   http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
% where you can also make suggestions and rate matlab2tikz.
% 
% 
% 
\begin{tikzpicture}

% defining custom colors
\definecolor{mycolor1}{rgb}{0,0.75,0.75}
\definecolor{mycolor2}{rgb}{0.75,0,0.75}
\definecolor{mycolor3}{rgb}{0.75,0.75,0}


\begin{semilogyaxis}[%
width=0.4\textwidth,
height=0.3\textwidth,
scale only axis,
xmin=0, xmax=9,
xlabel={level},
ymin=65, ymax=128000,
yminorticks=true,
ylabel={number of DOFs},
axis on top]
\addplot [
color=blue,
solid
]
coordinates{
 (0,250)(1,130) 
};

\addplot [
color=green!50!black,
solid
]
coordinates{
 (0,500)(1,269)(2,164) 
};

\addplot [
color=red,
solid
]
coordinates{
 (0,1000)(1,578)(2,393)(3,234) 
};

\addplot [
color=mycolor1,
solid
]
coordinates{
 (0,2000)(1,1426)(2,1009)(3,688)(4,333) 
};

\addplot [
color=mycolor2,
solid
]
coordinates{
 (0,4000)(1,2752)(2,1877)(3,1519)(4,858)(5,447) 
};

\addplot [
color=mycolor3,
solid
]
coordinates{
 (0,8000)(1,5642)(2,3951)(3,2920)(4,2391)(5,1291)(6,596) 
};

\addplot [
color=darkgray,
solid
]
coordinates{
 (0,16000)(1,11285)(2,7844)(3,6478)(4,5803)(5,3283)(6,1707)(7,806) 
};

\addplot [
color=blue,
solid
]
coordinates{
 (0,32000)(1,22721)(2,16603)(3,12438)(4,10268)(5,9269)(6,4603)(7,2322)(8,1071) 
};

\addplot [
color=green!50!black,
solid
]
coordinates{
 (0,64000)(1,46022)(2,32763)(3,27024)(4,24704)(5,23653)(6,12302)(7,6206)(8,3084)(9,1492) 
};

\end{semilogyaxis}
\end{tikzpicture}
